<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>

<div class="top clearfix">
	<ul class="tab">
		<li class="curr"><span><fmt:message key="productSelector.title"/></span></li>
	</ul>
	<b class="red">[<fmt:message key="productSelector.title.tip"/>]</b>
	<%@include file="/common/pagingOnlyTop.jsp"%>
</div>
<div class="data" style="">
	<display:table name="${productList}" cellspacing="0" cellpadding="0"	uid="product" class="list_table" style="width:100%;" export="false"	requestURI="">
		
		<display:column style="width:10%;" sortable="false" headerClass="data-table-title"
			decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
			titleKey="product.imageUrl">
			<a href="javascript:void(0)"	onclick='selectProduct(${product.productId})'><product:productImage product="${product}" sizeType="s0" linkType="0"/></a>
		</display:column>
		<display:column style="width:15%;" sortable="false" paramProperty="productId"
			decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
			titleKey="product.productName">
			<b><a href="javascript:void(0)"	onclick='selectProduct(${product.productId})'>${product.productName}</a></b>
			
			<input type="hidden" id="productName_${product.productId}" value="${product.productName}"/>	
			<input type="hidden" id="productCode_${product.productId}" value="${product.productCode}"/>	
			<input type="hidden" id="imageUrl_${product.productId}" value="${product.imageUrl}"/>	 
			<input type="hidden" id="productKind_${product.productId}" value="${product.productKind}"/>	 
			
		</display:column>
		<display:column style="width: 15%" sortable="false" headerClass="data-table-title" decorator="com.probiz.estore.core.decorator.TblColumnDecorator"	titleKey="product.productCode">
			${product.productCode}
		</display:column>
		<display:column style="width: 15%" sortable="false" headerClass="data-table-title" decorator="com.probiz.estore.core.decorator.TblColumnDecorator"	titleKey="productDetail.price">
			<product:productPrice productSku="${product.defaultProductSku}" multiple="true" hasPriceName="true"/>
		</display:column>
		<display:column style="width: 15%" sortable="false" headerClass="data-table-title" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="product.productTypeId">
			${product.productType.productTypeName}
		</display:column>
		<display:column  sortable="false" headerClass="data-table-title" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="product.category">
			${product.category.categoryName}
		</display:column>
		<display:column style="width: 10%;" sortable="false" headerClass="data-table-title" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="product.status">
			<fmt:message key="product.status.${product.status}"/>
		</display:column>
	</display:table>
</div>
<%@include file="/common/pagingOnly.jsp"%>

<%--------保存查询条件 -------%>
<%@include file="include/productSearchCriteriaStorage.jspf"%>
<script type="text/javascript">
highlightTableRows("product");
$j("#product").chromatable({
    width: "100%",
    height: "490px",
    scrolling: "yes"
}); 
</script>
